using ExampleMvcApplication.Services;
using SmallMvc;
using StructureMap;

namespace ExampleMvcApplication
{
    public static class ContainerBootstrapper
    {
        public static void BootstrapStructureMap()
        {
            ObjectFactory.Initialize(
                x =>
                    {
                        x.ForRequestedType<IHttpContextProvider>().TheDefaultIsConcreteType<HttpContextProvider>();
                        x.ForRequestedType<IAuthenticationService>().TheDefaultIsConcreteType<FormsAuthenticationService>();
                        x.ForRequestedType<IMembershipService>().TheDefaultIsConcreteType<VerySimpleMembershipService>();
                    });
        }
    }
}